package lambda_expression.jdk.fn;

import java.util.Arrays;
import java.util.StringJoiner;
import java.util.stream.Collectors;

public class GuoTrisomeTest {
    public static void main(String[] args) {
        System.out.println(extracted());
    }

    private static String extracted() {
        GuoTrisome<String, String, String> trisome = (trisome1, trisome2) -> {
            StringJoiner joiner = new StringJoiner(":", "[", "]");
            joiner.add(trisome1);
            joiner.add(trisome2);
            return joiner.toString();
        };
        return trisome.destory("三体人-张三", "三体人-赵四");
    }
}
